package cate.common.table.res.goldmall.sheet;

import cate.common.table.ESheet;
import cate.common.table.res.goldmall.row.GoldMallRewardRow;

public class GoldMallRewardSheet extends ESheet<GoldMallRewardRow> {
    @Override
    public String getSheetName() {
        return "金币商店奖励";
    }

    /** 根据玩家等级和宝箱id获取对应的基础奖励 */
    public long getM0(int level, int boxId) {
        GoldMallRewardRow row = this.get(level);
        if (row != null) {
            switch (boxId) {
                case 1:
                    return row.box1;
                case 2:
                    return row.box2;
                case 3:
                    return row.box3;
                default:
                    return row.box1;
            }
        }
        return 0L;
    }
}
